home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmllll((((1111MMMM)))) mmmmllll((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- ml - load dynamic kernel modules
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- mmmmllll lllliiiisssstttt [----rrrrllllbbbb]
- mmmmllll lllldddd [----vvvv] [----dddd] ----[ccccbbbbBBBBffff] module.o ----pppp prefix [----ssss major major ...]
- mmmmllll lllldddd [----vvvv] [----dddd] ----mmmm module.o ----pppp prefix [----aaaa streams_module_name]
- mmmmllll lllldddd [----vvvv] [----dddd] ----jjjj module.o ----pppp prefix [----aaaa file_system_name]
- mmmmllll lllldddd [----vvvv] [----dddd] ----llll module.o
- mmmmllll lllldddd [----vvvv] ----rrrr module.o [----uuuu] [----tttt autounload_delay]
- mmmmllll lllldddd [----vvvv] [----dddd] ----iiii module.o ----pppp prefix
- mmmmllll rrrreeeegggg [----vvvv] [----dddd] ----[ccccbbbbBBBBffff] module.o ----pppp prefix [----ssss major major ...]
- [----tttt autounload_delay]
- mmmmllll rrrreeeegggg [----vvvv] [----dddd] ----mmmm module.o ----pppp prefix [----aaaa streams_module_name]
- [----tttt autounload_delay]
- mmmmllll [uuuunnnnlllldddd|uuuunnnnrrrreeeegggg] [----vvvv] id ...
- mmmmllll ddddeeeebbbbuuuugggg [----vvvvssssnnnn]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _m_l command provides a means of loading and unloading dynamic kernel
- modules. The first argument to _m_l specifies its action from one of the
- following: list, load, unload, register, unregister. With no options,
- _m_l acts as if it were invoked as mmmmllll lllliiiisssstttt ----bbbb. The lllldddd, uuuunnnnlllldddd, rrrreeeegggg, and
- uuuunnnnrrrreeeegggg options are available only to the superuser. If successful, the _m_l
- command executes silently, unless the ----vvvv option is specified.
-
- mmmmllll lllliiiisssstttt provides a list of modules that are currently known by the
- kernel. The following options to mmmmllll lllliiiisssstttt are recognized:
-
- ----rrrr Print registered modules only.
-
- ----llll Print loaded modules only.
-
- ----bbbb Print both loaded and registered modules.
-
- mmmmllll lllldddd causes a kernel module to be loaded into memory and prepared to be
- executed as part of the kernel. mmmmllll rrrreeeegggg is similar to mmmmllll lllldddd, except that
- the module is not loaded until the first time the module is opened. If
- the ----vvvv option is specified, mmmmllll lllldddd and mmmmllll rrrreeeegggg list a module ID number on
- standard output that can be used for subsequent unloading. The ----dddd option
- allows the module's static symbols to be added to its symbol table. This
- allows symmon to have access to all of the module's symbols and is useful
- for debugging. The module type must be specified by one of the following
- options to mmmmllll lllldddd and mmmmllll rrrreeeegggg:
-
- ----cccc Module is a character device driver.
-
- ----bbbb Module is a block and character device driver.
-
- ----BBBB Module is a block device driver only.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmllll((((1111MMMM)))) mmmmllll((((1111MMMM))))
-
-
-
- ----ffff Module is a streams device driver.
-
- ----mmmm Module is a pushable streams module.
-
- ----llll Module is a library module.
-
- ----jjjj Module is a filesystem.
-
- ----iiii Module is the kernel debug module.
-
- ----rrrr Module is a symbol table module.
-
- The argument following the module type must be the name of the object
- file for the module.
-
- With the exception of the symbol table and library modules, a module
- prefix must be specified with the ----pppp option. The module prefix is the
- string used to find the various entry points within a module.
-
- Modules of type cccc, bbbb, BBBB, or ffff can specify an external device major number
- with the ----ssss option. If the major number is already in use, the module is
- not loaded. If a major number is not requested, it is assumed that the
- driver will add its devices to the hardware graph and will not use a
- major number.
-
- Modules of type mmmm can provide a streams module name with the ----aaaa option
- that is entered into the ffffmmmmooooddddsssswwww structure in the kernel. If a streams
- module name is not provided, the module is given the same name as the
- object file, with any trailing ....oooo removed. If the module name is already
- in use, the module is not loaded.
-
- Modules of type iiii are special kernel debugging modules to be used in
- conjunction with the iiiiddddbbbbgggg(1M) command.
-
- Modules of type rrrr are symbol table modules. A symbol table is created
- from the ELF symbol information in the file specified. This symbol table
- can be used by other modules to link against when loaded. A kernel run-
- time symbol table can be loaded manually using this command. The ----uuuu
- option indicates that the module to be loaded is to be treated as the
- kernel run-time symbol table. This is the default when the ----rrrr option
- specifies /unix. For more information, see mmmmllllooooaaaadddd(4).
-
- Modules that are registered are automatically auto-unloaded after last
- close by using a default auto-unload delay that is systuneable. A
- specific delay can be specified, in minutes, using the ----tttt option.
- Modules can also be configured to not be auto-unloaded by using ----tttt ----2222.
-
- mmmmllll uuuunnnnlllldddd unloads the loaded kernel modules specified by _i_d. Likewise, mmmmllll
- uuuunnnnrrrreeeegggg unregisters the registered kernel modules specified by _i_d. Both
- commands accept a list of module identifiers as arguments. If a
- registered module has been loaded into memory after its first open, it
- must be unloaded before it can be unregistered.
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- mmmmllll((((1111MMMM)))) mmmmllll((((1111MMMM))))
-
-
-
- mmmmllll ddddeeeebbbbuuuugggg can be used to turn verbose debugging messages on or off or to
- disable the loading and registering of modules:
-
- ----vvvv Turn verbose debugging on.
-
- ----nnnn Disable loading and registering of modules.
-
- ----ssss Silence verbose debugging and allow loading and registering of
- modules.
-
- WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
- A loaded module has all of the system privileges of kernel mode
- execution.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- List all loaded and registered modules:
-
- _mmmm_llll
-
- Load a streams driver with prefix ssssddddrrrrvvvv and major number 13:
-
- _mmmm_llll _llll_dddd _----_vvvv _----_ffff _ssss_tttt_rrrr_dddd_rrrr_vvvv_...._oooo _----_pppp _ssss_dddd_rrrr_vvvv _----_ssss _1111_3333
-
- Register a streams module with prefix ttttmmmmoooodddd and module name tttteeeessssttttmmmmoooodddd:
-
- _mmmm_llll _rrrr_eeee_gggg _----_mmmm _tttt_mmmm_oooo_dddd_...._oooo _----_pppp _tttt_mmmm_oooo_dddd _----_aaaa _tttt_eeee_ssss_tttt_mmmm_oooo_dddd
-
- Register a streams module with prefix ttttmmmmoooodddd and default module name ttttmmmmoooodddd:
-
- _mmmm_llll _rrrr_eeee_gggg _----_mmmm _tttt_mmmm_oooo_dddd_...._oooo _----_pppp _tttt_mmmm_oooo_dddd
-
- Unload the module with _i_d 1015:
-
- _mmmm_llll _uuuu_nnnn_llll_dddd _1111_0000_1111_5555
-
- Load the kernel debug module:
-
- _mmmm_llll _llll_dddd _----_iiii _////_vvvv_aaaa_rrrr_////_ssss_yyyy_ssss_gggg_eeee_nnnn_////_bbbb_oooo_oooo_tttt_////_iiii_dddd_bbbb_gggg_...._oooo _----_pppp _iiii_dddd_bbbb_gggg
-
-
- FFFFAAAAIIIILLLLUUUURRRREEEESSSS
- _m_l failure codes and descriptions are listed in the header file
- /_u_s_r/_i_n_c_l_u_d_e/_s_y_s/_m_l_o_a_d._h.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- mload(4).
-
- BBBBUUUUGGGGSSSS
- The _m_l command does not provide a way to create edt structures for
- drivers. Driver initialization can only be done from the driver's iiiinnnniiiitttt
- and ssssttttaaaarrrrtttt functions. See the _l_b_o_o_t(1M) reference page for loading
- drivers with edt functions.
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-